package com.un.ebs.data;

import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.List;

@Data
public class DataTableVo extends DataTable {

    private DataSource dataSource;

    private List<DataColumn> columns;

    public DataTableVo() {
    }

    public DataTableVo(DataTable dt, DataSource ds, List<DataColumn> columns) {
        BeanUtils.copyProperties(dt, this);
        this.dataSource = ds;
        this.columns = columns;
    }
}
